﻿#ifndef __SS_LE_HTTP_CLIENT_H__
#define __SS_LE_HTTP_CLIENT_H__
#include <event2/event.h>
#include <event2/http.h>
#include <event2/buffer.h>
#include <event2/util.h>
#include <event2/http_struct.h>
#include <event2/keyvalq_struct.h>
#include <event2/event_compat.h>

namespace StarSeeker
{

class ssLeHttpClient
{
public:
	ssLeHttpClient();
	~ssLeHttpClient();

	bool StartConnect(const char* ip, unsigned short port);
	evhttp_request* MakeRequest(const char* param);
	void BreakLoop();
	virtual void OnResponse(const char* param);

private:
	struct event_base*			m_base;
	struct evhttp_connection*	m_conn;
};

}
#endif
